<!DOCTYPE html>
<!-- saved from url=(0083)http://stackoverflow.com/questions/8236156/android-webview-with-authenticated-proxy -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <title>java - Android WebView - with authenticated proxy - Stack Overflow</title>
    <link rel="shortcut icon" href="http://cdn.sstatic.net/stackoverflow/img/favicon.ico?v=038622610830">
    <link rel="apple-touch-icon image_src" href="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png?v=fd7230a85918">
    <link rel="search" type="application/opensearchdescription+xml" title="Stack Overflow" href="http://stackoverflow.com/opensearch.xml">
    <meta name="twitter:card" content="summary">
    <meta name="twitter:domain" content="stackoverflow.com">
    <meta name="og:type" content="website">
    <meta name="og:image" content="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon@2.png?v=fde65a5a78c6">
    <meta name="og:title" content="Android WebView - with authenticated proxy">
    <meta name="og:description" content="I am currently trying to debug an Android App built around WebView. The development network environment that I am tasked to deal with (not my choice, it is an &#39;enterprisey&#39; security decision) is WP...">
    <meta name="og:url" content="http://stackoverflow.com/questions/8236156/android-webview-with-authenticated-proxy">
    <link rel="canonical" href="./java - Android WebView - with authenticated proxy - Stack Overflow_files/java - Android WebView - with authenticated proxy - Stack Overflow.htm">

    
    
    <script type="text/javascript" async="" src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/ados"></script><script async="" src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/quant.js"></script><script async="" src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/beacon.js"></script><script async="" src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/analytics.js"></script><script type="text/javascript" async="" src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/ados.js"></script><script src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/jquery.min.js"></script>
    <script src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/stub.en.js"></script>
    <link rel="stylesheet" type="text/css" href="./java - Android WebView - with authenticated proxy - Stack Overflow_files/all.css">
    
    <link rel="alternate" type="application/atom+xml" title="Feed for question &#39;Android WebView - with authenticated proxy&#39;" href="http://stackoverflow.com/feeds/question/8236156">
    <script>
        
        StackExchange.ready(function () {
            StackExchange.using("postValidation", function () {
                StackExchange.postValidation.initOnBlurAndSubmit($('#post-form'), 2, 'answer');
            });

            
            StackExchange.question.init({showAnswerHelp:true,totalCommentCount:0,shownCommentCount:0,highlightColor:'#F4A83D',backgroundColor:'#FFF',questionId:8236156});

            styleCode();

                StackExchange.realtime.subscribeToQuestion('1', '8236156');
            
                    });
    </script>


    <script>
        StackExchange.init({"locale":"en","stackAuthUrl":"https://stackauth.com","serverTime":1403193047,"networkMetaHostname":"meta.stackexchange.com","styleCode":true,"enableUserHovercards":true,"site":{"name":"Stack Overflow","description":"Q&A for professional and enthusiast programmers","isNoticesTabEnabled":true,"recaptchaPublicKey":"6LdchgIAAAAAAJwGpIzRQSOFaO0pU6s44Xt8aTwc","recaptchaAudioLang":"en","enableNewTagCreationWarning":true,"nonAsciiTags":true,"enableSocialMediaInSharePopup":true},"user":{"fkey":"f304221e956f5987b4231c0c99c3560f","isAnonymous":true,"ab":{"welcome_email":{"v":"4","g":1}}}});
        StackExchange.using.setCacheBreakers({"js/prettify-full.en.js":"82e5469b64dd","js/moderator.en.js":"d170c66848ab","js/full-anon.en.js":"74e78261288e","js/full.en.js":"f1f00528a9de","js/wmd.en.js":"2076934041e0","js/third-party/jquery.autocomplete.min.js":"e5f01e97f7c3","js/third-party/jquery.autocomplete.min.en.js":"","js/mobile.en.js":"55627e8bc276","js/help.en.js":"56d0a3a560ae","js/tageditor.en.js":"87bb43f80c6d","js/tageditornew.en.js":"1e7066408e3f","js/inline-tag-editing.en.js":"1498d8619942","js/revisions.en.js":"989c474e85a9","js/review.en.js":"794ac20bba88","js/tagsuggestions.en.js":"bc2c996faeda","js/post-validation.en.js":"f7276113dc79","js/explore-qlist.en.js":"8b8b631bd679","js/events.en.js":"cc1d19ab3d25"});
        StackExchange.using("gps", function() {
             StackExchange.gps.init(true);
        });
    </script>
    
        <script>
            StackExchange.ready(function () {
                $('#nav-tour').click(function () {
                    StackExchange.using("gps", function() {
                        StackExchange.gps.track("aboutpage.click", { aboutclick_location: "headermain" }, true);
                    });
                });
            });
        </script>
<script async="" src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/full-anon.en.js"></script><script async="" src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/post-validation.en.js"></script><script async="" src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/prettify-full.en.js"></script><script type="text/javascript" src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/adFeedback.js"></script><link rel="stylesheet" href="http://static.adzerk.net/Extensions/adFeedback.css"><link href="./java - Android WebView - with authenticated proxy - Stack Overflow_files/sidebar.min.css" type="text/css" rel="stylesheet"></head>
<body class="question-page new-topbar">
    <noscript>&lt;div id="noscript-padding"&gt;&lt;/div&gt;</noscript>
    <div id="notify-container"></div>
    <div id="overlay-header"></div>
    <div id="custom-header"></div>
<div class="topbar">
    <div class="topbar-wrapper">
        
        <div class="js-topbar-dialog-corral">

<div class="topbar-dialog siteSwitcher-dialog dno">
    <div class="header">
        <h3><a href="http://stackoverflow.com/">current community</a></h3>
    </div>
    <div class="modal-content current-site-container">
        <ul class="current-site">
                <li>
                        <div class="related-links">
            <a href="http://chat.stackoverflow.com/" data-gps-track="site_switcher.click({ item_type:6 })">chat</a>
                    <a href="http://blog.stackoverflow.com/" data-gps-track="site_switcher.click({ item_type:7 })">blog</a>
            </div>




    <a href="http://stackoverflow.com/" class="current-site-link site-link js-gps-track" data-id="1" data-gps-track="
        site_switcher.click({ item_type:3 })">
        <div class="site-icon favicon favicon-stackoverflow" title="Stack Overflow"></div>
        Stack Overflow
    </a>

                </li>
                <li class="related-site">
                        <div class="L-shaped-icon-container">
        <span class="L-shaped-icon"></span>
    </div>

                    



    <a href="http://meta.stackoverflow.com/" class="site-link js-gps-track" data-id="552" data-gps-track="
            site.switch({ target_site:552, item_type:3 }),
        site_switcher.click({ item_type:4 })">
        <div class="site-icon favicon favicon-stackoverflowmeta" title="Meta Stack Overflow"></div>
        Meta Stack Overflow
    </a>

                </li>
                            <li class="related-site">
                        <div class="L-shaped-icon-container">
        <span class="L-shaped-icon"></span>
    </div>

                    <a class="site-link" href="http://careers.stackoverflow.com/" data-gps-track="site_switcher.click({ item_type:9 })">
                        <div class="site-icon favicon favicon-careers" title="Stack Overflow Careers"></div>
                        Careers 2.0
                    </a>
                </li>
        </ul>
    </div>
    
    <div class="header" id="your-communities-header">
        <h3>
your communities        </h3>
            
    </div>
    <div class="modal-content" id="your-communities-section">
            
            <div class="call-to-login">
                        <a href="https://stackoverflow.com/users/signup?returnurl=http%3a%2f%2fstackoverflow.com%2fquestions%2f8236156%2fandroid-webview-with-authenticated-proxy" class="js-gps-track" data-gps-track="site_switcher.click({ item_type:10 })">Sign up</a>
                    or
                    <a href="https://stackoverflow.com/users/login?returnurl=http%3a%2f%2fstackoverflow.com%2fquestions%2f8236156%2fandroid-webview-with-authenticated-proxy" class="js-gps-track" data-gps-track="site_switcher.click({ item_type:11 })">log in</a>

                    to customize your list.
            </div>
    </div>
    
    <div class="header">
        <h3><a href="http://stackexchange.com/sites">more stack exchange communities</a></h3>
    </div>
    <div class="modal-content">
            <div class="child-content"></div>
    </div>
</div>
        </div>

        <div class="network-items">
            
            <a href="http://stackexchange.com/" class="topbar-icon icon-site-switcher yes-hover js-site-switcher-button js-gps-track" data-gps-track="site_switcher.show" title="A list of all 128 Stack Exchange sites">
                <span class="hidden-text">Stack Exchange</span>
            </a>
            
        </div>

        <div class="topbar-links">
            
                <div class="links-container">
                    <span class="topbar-menu-links">
                            <a href="https://stackoverflow.com/users/signup?returnurl=http%3a%2f%2fstackoverflow.com%2fquestions%2f8236156%2fandroid-webview-with-authenticated-proxy" class="login-link">sign up</a>
                            <a href="https://stackoverflow.com/users/login?returnurl=http%3a%2f%2fstackoverflow.com%2fquestions%2f8236156%2fandroid-webview-with-authenticated-proxy" class="login-link">log in</a>
                            <a href="http://stackoverflow.com/tour">tour</a>

                            <a href="http://stackoverflow.com/questions/8236156/android-webview-with-authenticated-proxy#" class="icon-help js-help-button" title="Help Center and other resources">
        help
        <span class="triangle"></span>
    </a>
    <div class="topbar-dialog help-dialog js-help-dialog dno">
        <div class="modal-content">
            <ul>
                                    <li>
                        <a href="http://stackoverflow.com/tour" class="js-gps-track" data-gps-track="help_popup.click({ item_type:1 })">
                            Tour
                            <span class="item-summary">
                                Start here for a quick overview of the site
                            </span>
                        </a>
                    </li>
                <li>
                    <a href="http://stackoverflow.com/help" class="js-gps-track" data-gps-track="help_popup.click({ item_type:4 })">
                        Help Center
                        <span class="item-summary">
                            Detailed answers to any questions you might have
                        </span>
                    </a>
                </li>
                    <li>
                        <a href="http://meta.stackoverflow.com/" class="js-gps-track" data-gps-track="help_popup.click({ item_type:2 })">
                            Meta
                            <span class="item-summary">
                                Discuss the workings and policies of this site
                            </span>
                        </a>
                    </li>
            </ul>
        </div>
    </div>

                            <a href="http://careers.stackoverflow.com/">careers 2.0</a>
                    </span>
                </div>

			<div class="search-container">
                <form id="search" action="http://stackoverflow.com/search" method="get" autocomplete="off">
                    <input name="q" type="text" placeholder="search" value="" tabindex="1" autocomplete="off" maxlength="240">
                </form>
			</div>
            	
        </div>      
    </div> 
</div>
<script>
    StackExchange.ready(function () { StackExchange.topbar.init(); });
</script>
    <div class="container">
        <div id="header" class="headeranon">
            <br class="cbt">
            <div id="hlogo">
                <a href="http://stackoverflow.com/">
                    Stack Overflow
                </a>
            </div>
            <div id="hmenus">
                <div class="nav mainnavs mainnavsanon">
                    <ul>
                        <li class="youarehere"><a id="nav-questions" href="http://stackoverflow.com/questions">Questions</a></li>
                        <li><a id="nav-tags" href="http://stackoverflow.com/tags">Tags</a></li>
                        <li><a id="nav-users" href="http://stackoverflow.com/users">Users</a></li>
                        <li><a id="nav-badges" href="http://stackoverflow.com/help/badges">Badges</a></li>
                        <li><a id="nav-unanswered" href="http://stackoverflow.com/unanswered">Unanswered</a></li>
                    </ul>
                </div>
                <div class="nav askquestion">
                    <ul>
                        <li>
                            <a id="nav-askquestion" href="http://stackoverflow.com/questions/ask">Ask Question</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        



        <div id="content">
            

<div itemscope="" itemtype="http://schema.org/Article">
	<link itemprop="image" href="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png">
			<!--googleoff: all-->

<div id="herobox-mini">
    <div id="hero-content">
        <span id="controls">
            <a href="http://stackoverflow.com/tour" id="tell-me-more" class="button">Take the 2-minute tour</a>
            <span id="close"><a title="click to dismiss">×</a></span>
        </span>
        <div id="blurb">
            Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
        </div>        
    </div>
    <script>
        $('#tell-me-more').click(function () {
            var clickSource = $("body").attr("class") + '-mini';
            if ($("body").hasClass("questions-page")) {
                clickSource = 'questionpagemini';
            } else if ($("body").hasClass("question-page")) {
                clickSource = 'questionpagemini';
            } else if ($("body").hasClass("home-page")) {
                clickSource = 'homepagemini';
            }

            StackExchange.using("gps", function () {
                StackExchange.gps.track("aboutpage.click", { aboutclick_location: clickSource } , true);
            });
        });
        $('#herobox-mini #close').click(function () {
            StackExchange.using("gps", function () {
                StackExchange.gps.track("hero.action", { hero_action_type: "close" }, true);
            });
            $.cookie("hero", "none", { path: "/" });
            var $hero = $("#herobox-mini");
            $hero.slideUp('fast', function () { $hero.remove(); });
            return false;
        });
    </script>
</div>
			<!--googleon: all-->
			<div id="question-header">
			<h1 itemprop="name"><a href="./java - Android WebView - with authenticated proxy - Stack Overflow_files/java - Android WebView - with authenticated proxy - Stack Overflow.htm" class="question-hyperlink">Android WebView - with authenticated proxy</a></h1>
		</div>
			<div id="mainbar">

			

<div class="question" data-questionid="8236156" id="question">

    <script>
                var ados = ados || {};ados.run = ados.run || [];
                ados.run.push(function() { ados_add_placement(22,8277,"adzerk468872297",4).setZone(43) ; });                    
            </script>
            <div class="everyonelovesstackoverflow adzerk-vote" id="adzerk468872297">
            <iframe id="ados_frame_adzerk468872297_187874" frameborder="0" scrolling="no" height="90" width="728"></iframe><div class="adzerk-vote-controls" style="display:none;"><div class="adzerk-vote-option adzerk-vote-up"><div class="adzerk-vote-icon"></div></div><div class="adzerk-vote-option adzerk-vote-down"><div class="adzerk-vote-icon"></div></div></div><div class="adzerk-vote-survey" style="display:none;"><form><span>No problem. We won't show you that ad again. Why didn't you like it?</span><ul><li><label><input type="radio" value="12" name="downvoteReason">Uninteresting</label></li><li><label><input type="radio" value="13" name="downvoteReason">Misleading</label></li><li><label><input type="radio" value="14" name="downvoteReason">Offensive</label></li><li><label><input type="radio" value="15" name="downvoteReason">Repetitive</label></li></ul><a href="http://stackoverflow.com/questions/8236156/android-webview-with-authenticated-proxy#" class="adzerk-vote-cancel">Oops! I didn't mean to do this.</a></form></div><img height="0px" width="0px" border="0" src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/i.gif"></div>    <table>
        <tbody><tr>
            <td class="votecell">
                

<div class="vote">
    <input type="hidden" name="_id_" value="8236156">
    <a class="vote-up-off" title="This question shows research effort; it is useful and clear">up vote</a>
    <span class="vote-count-post ">2</span>
    <a class="vote-down-off" title="This question does not show any research effort; it is unclear or not useful">down vote</a>
    
    <a class="star-off" href="http://stackoverflow.com/questions/8236156/android-webview-with-authenticated-proxy#" title="This is a favorite question (click again to undo)">favorite</a>
    <div class="favoritecount"><b>2</b></div>   

</div>

            </td>
            
<td class="postcell">
<div>
    <div class="post-text" itemprop="description">

        <p>I am currently trying to debug an Android App built around WebView. The development network environment that I am tasked to deal with (not my choice, it is an 'enterprisey' security decision) is WPA WiFi + proxy server + proxy authentication.</p>

<p>While the instructions on a <a href="http://stackoverflow.com/questions/4488338/webview-android-proxy">very helpful previous answer</a> were great, I'm trying to find a way to configure both proxy host:port <em>and</em> username:password.</p>

<p>My constraints are:</p>

<ul>
<li>Phone is not rooted - trying to reproduce a customer-reported bug, would rather not deviate from typical customer setup</li>
<li>Running a Samsung Galaxy S on Froyo</li>
<li>Built against 2.1</li>
</ul>

<p>Android apps aren't my usual thing, again not my choice, so if I'm blatantly missing details, be nice ;)</p>

    </div>
    <div class="post-taglist">
        <a href="http://stackoverflow.com/questions/tagged/java" class="post-tag js-gps-track" title="show questions tagged &#39;java&#39;" rel="tag">java</a> <a href="http://stackoverflow.com/questions/tagged/android" class="post-tag js-gps-track" title="show questions tagged &#39;android&#39;" rel="tag"><img src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/tKsDb.png" height="16" width="18" alt="" class="sponsor-tag-img">android</a> <a href="http://stackoverflow.com/questions/tagged/proxy" class="post-tag js-gps-track" title="show questions tagged &#39;proxy&#39;" rel="tag">proxy</a> <a href="http://stackoverflow.com/questions/tagged/android-webview" class="post-tag js-gps-track" title="show questions tagged &#39;android-webview&#39;" rel="tag">android-webview</a> 
    </div>
    <table class="fw">
    <tbody><tr>
    <td class="vt">
<div class="post-menu"><a href="http://stackoverflow.com/q/8236156" title="short permalink to this question" class="short-link" id="link-post-8236156">share</a><span class="lsep">|</span><a href="http://stackoverflow.com/posts/8236156/edit" class="suggest-edit-post" title="">improve this question</a></div>        
    </td>
    <td align="right" class="post-signature">
<div class="user-info ">
    <div class="user-action-time">
        <a href="http://stackoverflow.com/posts/8236156/revisions" title="show all edits to this post">edited <span title="2011-11-24 02:23:30Z" class="relativetime">Nov 24 '11 at 2:23</span></a>
    </div>
    <div class="user-gravatar32">
        
    </div>
    <div class="user-details">
        <br>
        
    </div>
</div>    </td>
    <td class="post-signature owner">
        <div class="user-info ">
    <div class="user-action-time">
        asked <span title="2011-11-23 01:11:35Z" class="relativetime">Nov 23 '11 at 1:11</span>
    </div>
    <div class="user-gravatar32">
        <a href="http://stackoverflow.com/users/525940/stoive"><div class="gravatar-wrapper-32"><img src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/1fad0888383bd317ef0d1a5a29990bc7" alt=""></div></a>
    </div>
    <div class="user-details">
        <a href="http://stackoverflow.com/users/525940/stoive">Stoive</a><br>
        <span class="reputation-score" title="reputation score " dir="ltr">3,427</span><span title="1 gold badge"><span class="badge1"></span><span class="badgecount">1</span></span><span title="14 silver badges"><span class="badge2"></span><span class="badgecount">14</span></span><span title="26 bronze badges"><span class="badge3"></span><span class="badgecount">26</span></span>
    </div>
</div>
    </td>
    </tr>
    </tbody></table>
</div>
</td>
        </tr>
                
<tr>
    <td class="votecell"></td>
    <td>
	    <div id="comments-8236156" class="comments  dno" data-localized="true">
		    <table>
			    <tbody data-remaining-comments-count="0" data-addlink-html="add comment" data-addlink-disabled="true">
					    <tr><td></td><td></td></tr>
			    </tbody>
		    </table>
	    </div>
			<a id="comments-link-8236156" data-rep="50" data-anon="true" class="comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.">add comment</a>
    </td>
</tr>        </tbody></table>
</div>


			<div id="answers">

				<a name="tab-top"></a>
				<div id="answers-header">
					<div class="subheader answers-subheader">
						<h2>
								2 Answers
						</h2>
						<div>
							<div id="tabs">
        <a href="http://stackoverflow.com/questions/8236156/android-webview-with-authenticated-proxy?answertab=active#tab-top" title="Answers with the latest activity first">active</a>
        <a href="http://stackoverflow.com/questions/8236156/android-webview-with-authenticated-proxy?answertab=oldest#tab-top" title="Answers in the order they were provided">oldest</a>
        <a class="youarehere" href="http://stackoverflow.com/questions/8236156/android-webview-with-authenticated-proxy?answertab=votes#tab-top" title="Answers with the highest score first">votes</a>
</div>
						</div>
					</div>    
				</div>    




  
<a name="8550804"></a>
<div id="answer-8550804" class="answer accepted-answer" data-answerid="8550804">
    <table>
        <tbody><tr>
            <td class="votecell">
                

<div class="vote">
    <input type="hidden" name="_id_" value="8550804">
    <a class="vote-up-off" title="This answer is useful">up vote</a>
    <span class="vote-count-post ">0</span>
    <a class="vote-down-off" title="This answer is not useful">down vote</a>
    


        <span class="vote-accepted-on load-accepted-answer-date" title="loading when this answer was accepted...">accepted</span>
</div>

            </td>
            


<td class="answercell">
    <div class="post-text">
            <p>See this <a href="http://stackoverflow.com/a/2542928/277945">Related Answer</a>.</p>

    </div>
    <table class="fw">
    <tbody><tr>
    <td class="vt">
<div class="post-menu"><a href="http://stackoverflow.com/a/8550804" title="short permalink to this answer" class="short-link" id="link-post-8550804">share</a><span class="lsep">|</span><a href="http://stackoverflow.com/posts/8550804/edit" class="suggest-edit-post" title="">improve this answer</a></div>                    </td>
    <td align="right" class="post-signature">
<div class="user-info user-hover">
    <div class="user-action-time">
        <a href="http://stackoverflow.com/posts/8550804/revisions" title="show all edits to this post">edited <span title="2011-12-18 13:36:51Z" class="relativetime">Dec 18 '11 at 13:36</span></a>
    </div>
    <div class="user-gravatar32">
        <a href="http://stackoverflow.com/users/1089811/r-daneel-olivaw"><div class="gravatar-wrapper-32"><img src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/y9d4M.jpg" alt=""></div></a>
    </div>
    <div class="user-details">
        <a href="http://stackoverflow.com/users/1089811/r-daneel-olivaw">R.daneel.olivaw</a><br>
        <span class="reputation-score" title="reputation score " dir="ltr">1,979</span><span title="9 silver badges"><span class="badge2"></span><span class="badgecount">9</span></span><span title="22 bronze badges"><span class="badge3"></span><span class="badgecount">22</span></span>
    </div>
</div>    </td>
            


    <td align="right" class="post-signature">   
       

    <div class="user-info ">
    <div class="user-action-time">
        answered <span title="2011-12-18 09:20:09Z" class="relativetime">Dec 18 '11 at 9:20</span>
    </div>
    <div class="user-gravatar32">
        <a href="http://stackoverflow.com/users/277945/tjlian616"><div class="gravatar-wrapper-32"><img src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/b112200538efa550095b43a365d26240" alt=""></div></a>
    </div>
    <div class="user-details">
        <a href="http://stackoverflow.com/users/277945/tjlian616">tjlian616</a><br>
        <span class="reputation-score" title="reputation score " dir="ltr">57</span><span title="2 silver badges"><span class="badge2"></span><span class="badgecount">2</span></span><span title="9 bronze badges"><span class="badge3"></span><span class="badgecount">9</span></span>
    </div>
</div>
    </td>
    </tr>
    </tbody></table>
</td>
        </tr>
        
<tr>
    <td class="votecell"></td>
    <td>
	    <div id="comments-8550804" class="comments " data-localized="true">
		    <table>
			    <tbody data-remaining-comments-count="0" data-addlink-html="add comment" data-addlink-disabled="true">

    <tr id="comment-10603638" class="comment ">
        <td>
            <table>
                <tbody>
                    <tr>
                        <td class=" comment-score">
                                &nbsp;&nbsp;
                        </td>
                        <td>
                                &nbsp;
                        </td>
                    </tr>
                </tbody>
            </table>
        </td>
        <td class="comment-text">
            <div style="display: block;" class="comment-body">
                <span class="comment-copy">Thanks! This question was asked a while back, and the need for a solution has been worked around, but good to have resolution.</span>
                –&nbsp;
                    <a href="http://stackoverflow.com/users/525940/stoive" title="3427 reputation" class="comment-user owner">Stoive</a>
                <span class="comment-date" dir="ltr"><a class="comment-link" href="http://stackoverflow.com/questions/8236156/android-webview-with-authenticated-proxy#comment10603638_8550804"><span title="2011-12-19 00:06:34Z" class="relativetime-clean">Dec 19 '11 at 0:06</span></a></span>
                                                                            </div>
                    </td>
    </tr>
			    </tbody>
		    </table>
	    </div>
			<a id="comments-link-8550804" data-rep="50" data-anon="true" class="comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.">add comment</a>
    </td>
</tr>    </tbody></table>
</div>
<script>
                var ados = ados || {};ados.run = ados.run || [];
                ados.run.push(function() { ados_add_placement(22,8277,"adzerk1926045823",4).setZone(44) ; });                    
            </script>
            <div class="everyonelovesstackoverflow adzerk-vote" id="adzerk1926045823">
            <iframe id="ados_frame_adzerk1926045823_214009" frameborder="0" scrolling="no" height="90" width="728"></iframe><div class="adzerk-vote-controls" style="display: none;"><div class="adzerk-vote-option adzerk-vote-up"><div class="adzerk-vote-icon"></div></div><div class="adzerk-vote-option adzerk-vote-down"><div class="adzerk-vote-icon"></div></div></div><div class="adzerk-vote-survey" style="display:none;"><form><span>No problem. We won't show you that ad again. Why didn't you like it?</span><ul><li><label><input type="radio" value="12" name="downvoteReason">Uninteresting</label></li><li><label><input type="radio" value="13" name="downvoteReason">Misleading</label></li><li><label><input type="radio" value="14" name="downvoteReason">Offensive</label></li><li><label><input type="radio" value="15" name="downvoteReason">Repetitive</label></li></ul><a href="http://stackoverflow.com/questions/8236156/android-webview-with-authenticated-proxy#" class="adzerk-vote-cancel">Oops! I didn't mean to do this.</a></form></div><img height="0px" width="0px" border="0" src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/i(1).gif"></div>
  
<a name="10752723"></a>
<div id="answer-10752723" class="answer" data-answerid="10752723">
    <table>
        <tbody><tr>
            <td class="votecell">
                

<div class="vote">
    <input type="hidden" name="_id_" value="10752723">
    <a class="vote-up-off" title="This answer is useful">up vote</a>
    <span class="vote-count-post ">3</span>
    <a class="vote-down-off" title="This answer is not useful">down vote</a>
    


</div>

            </td>
            


<td class="answercell">
    <div class="post-text">
            <p>With <a href="http://stackoverflow.com/questions/4488338/webview-android-proxy">WebView android proxy</a> configuration, for basic scheme preemptive proxy authentication,</p>

<p>Starting from Android 2.2, the extra header can be set for authentication. The following can add a header for <code>webView</code>'s http request:</p>

<pre class="lang-java prettyprint prettyprinted"><code><span class="pln">    </span><span class="kwd">public</span><span class="pln"> </span><span class="kwd">void</span><span class="pln"> loadUrl</span><span class="pun">(</span><span class="typ">WebView</span><span class="pln"> view</span><span class="pun">,</span><span class="pln"> </span><span class="typ">String</span><span class="pln"> url</span><span class="pun">,</span><span class="pln"> </span><span class="typ">String</span><span class="pln"> proxyUserName</span><span class="pun">,</span><span class="pln"> </span><span class="typ">String</span><span class="pln"> proxyPassword</span><span class="pun">){</span><span class="pln">
            </span><span class="typ">UsernamePasswordCredentials</span><span class="pln"> creds</span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">UsernamePasswordCredentials</span><span class="pun">(</span><span class="pln">proxyUserName</span><span class="pun">,</span><span class="pln"> proxyPassword</span><span class="pun">);</span><span class="pln">
            </span><span class="typ">Header</span><span class="pln"> credHeader </span><span class="pun">=</span><span class="pln"> </span><span class="typ">BasicScheme</span><span class="pun">.</span><span class="pln">authenticate</span><span class="pun">(</span><span class="pln">creds</span><span class="pun">,</span><span class="pln"> </span><span class="str">"UTF-8"</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">true</span><span class="pun">);</span><span class="pln">
            </span><span class="typ">Map</span><span class="pun">&lt;</span><span class="typ">String</span><span class="pun">,</span><span class="pln"> </span><span class="typ">String</span><span class="pun">&gt;</span><span class="pln"> header </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">HashMap</span><span class="pun">&lt;</span><span class="typ">String</span><span class="pun">,</span><span class="pln"> </span><span class="typ">String</span><span class="pun">&gt;();</span><span class="pln">
            header</span><span class="pun">.</span><span class="pln">put</span><span class="pun">(</span><span class="pln">credHeader</span><span class="pun">.</span><span class="pln">getName</span><span class="pun">(),</span><span class="pln"> credHeader</span><span class="pun">.</span><span class="pln">getValue</span><span class="pun">());</span><span class="pln">
            view</span><span class="pun">.</span><span class="pln">loadUrl</span><span class="pun">(</span><span class="pln">url</span><span class="pun">,</span><span class="pln"> header</span><span class="pun">);</span><span class="pln">
    </span><span class="pun">}</span></code></pre>

<p>For older version, the preemptive proxy authentication can be set on <code>mProxyUserName</code> and <code>mProxyPassword</code> in <code>android.webkit.Network</code> by reflection:</p>

<pre class="lang-java prettyprint prettyprinted"><code><span class="kwd">public</span><span class="pln"> </span><span class="kwd">void</span><span class="pln"> loadUrl</span><span class="pun">(</span><span class="typ">WebView</span><span class="pln"> view</span><span class="pun">,</span><span class="pln"> </span><span class="typ">String</span><span class="pln"> url</span><span class="pun">,</span><span class="pln"> </span><span class="typ">String</span><span class="pln"> proxyUserName</span><span class="pun">,</span><span class="pln"> </span><span class="typ">String</span><span class="pln"> proxyPassword</span><span class="pun">){</span><span class="pln">
    </span><span class="kwd">try</span><span class="pun">{</span><span class="pln">
        </span><span class="typ">Class</span><span class="pln"> networkClass </span><span class="pun">=</span><span class="pln"> </span><span class="typ">Class</span><span class="pun">.</span><span class="pln">forName</span><span class="pun">(</span><span class="str">"android.webkit.Network"</span><span class="pun">);</span><span class="pln">
        </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">networkClass </span><span class="pun">!=</span><span class="pln"> </span><span class="kwd">null</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
            </span><span class="typ">Object</span><span class="pln"> networkObj </span><span class="pun">=</span><span class="pln"> invokeMethod</span><span class="pun">(</span><span class="pln">networkClass</span><span class="pun">,</span><span class="pln"> </span><span class="str">"getInstance"</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">Object</span><span class="pun">[]{</span><span class="pln">view</span><span class="pun">.</span><span class="pln">getContext</span><span class="pun">()},</span><span class="pln"> </span><span class="typ">Context</span><span class="pun">.</span><span class="kwd">class</span><span class="pun">);</span><span class="pln">
            </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">networkObj </span><span class="pun">!=</span><span class="pln"> </span><span class="kwd">null</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
                </span><span class="typ">Field</span><span class="pln"> mProxyUserName </span><span class="pun">=</span><span class="pln"> obj</span><span class="pun">.</span><span class="pln">getClass</span><span class="pun">().</span><span class="pln">getDeclaredField</span><span class="pun">(</span><span class="str">"mProxyUserName"</span><span class="pun">);</span><span class="pln">
                mProxyUserName</span><span class="pun">.</span><span class="pln">setAccessible</span><span class="pun">(</span><span class="kwd">true</span><span class="pun">);</span><span class="pln">mProxyUserName</span><span class="pun">.</span><span class="pln">set</span><span class="pun">(</span><span class="pln">networkObj</span><span class="pun">,</span><span class="pln"> proxyUserName</span><span class="pun">);</span><span class="pln">
                </span><span class="typ">Field</span><span class="pln"> mProxyPassword </span><span class="pun">=</span><span class="pln"> obj</span><span class="pun">.</span><span class="pln">getClass</span><span class="pun">().</span><span class="pln">getDeclaredField</span><span class="pun">(</span><span class="str">"mProxyPassword"</span><span class="pun">);</span><span class="pln">
                mProxyPassword</span><span class="pun">.</span><span class="pln">setAccessible</span><span class="pun">(</span><span class="kwd">true</span><span class="pun">);</span><span class="pln">mProxyPassword</span><span class="pun">.</span><span class="pln">set</span><span class="pun">(</span><span class="pln">networkObj</span><span class="pun">,</span><span class="pln"> proxyPassword</span><span class="pun">);</span><span class="pln">                       
            </span><span class="pun">}</span><span class="pln">
        </span><span class="pun">}</span><span class="pln">
    </span><span class="pun">}</span><span class="kwd">catch</span><span class="pun">(</span><span class="typ">Exception</span><span class="pln"> e</span><span class="pun">){</span><span class="pln">
        e</span><span class="pun">.</span><span class="pln">printStackTrace</span><span class="pun">();</span><span class="pln">
    </span><span class="pun">}</span><span class="pln">
    view</span><span class="pun">.</span><span class="pln">loadUrl</span><span class="pun">(</span><span class="pln">url</span><span class="pun">);</span><span class="pln">
</span><span class="pun">}</span></code></pre>

<p>When you load a new url, both <code>loadUrl()</code> must need to call again. That is very important.
Therefore, a custom <code>WebViewClient</code> should be used to override <code>shouldOverrideUrlLoading(WebView view, String url)</code> </p>

<pre class="lang-java prettyprint prettyprinted"><code><span class="kwd">class</span><span class="pln"> </span><span class="typ">ProxyAuthWebViewClient</span><span class="pln"> </span><span class="kwd">extends</span><span class="pln"> </span><span class="typ">WebViewClient</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
    </span><span class="typ">String</span><span class="pln"> proxyUserName</span><span class="pun">;</span><span class="pln">
    </span><span class="typ">String</span><span class="pln"> proxyPassword</span><span class="pun">;</span><span class="pln">
    </span><span class="kwd">public</span><span class="pln"> </span><span class="typ">ProxyAuthWebViewClient</span><span class="pun">(</span><span class="typ">String</span><span class="pln"> proxyUserName</span><span class="pun">,</span><span class="pln"> </span><span class="typ">String</span><span class="pln"> proxyPassword</span><span class="pun">){</span><span class="pln">
        </span><span class="kwd">this</span><span class="pun">.</span><span class="pln">proxyUserName </span><span class="pun">=</span><span class="pln"> proxyUserName</span><span class="pun">;</span><span class="pln">
        </span><span class="kwd">this</span><span class="pun">.</span><span class="pln">proxyPassword </span><span class="pun">=</span><span class="pln"> proxyPassword</span><span class="pun">;</span><span class="pln">
    </span><span class="pun">}</span><span class="pln">
    </span><span class="lit">@Override</span><span class="pln">
    </span><span class="kwd">public</span><span class="pln"> </span><span class="kwd">boolean</span><span class="pln"> shouldOverrideUrlLoading</span><span class="pun">(</span><span class="typ">WebView</span><span class="pln"> view</span><span class="pun">,</span><span class="pln"> </span><span class="typ">String</span><span class="pln"> url</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
        loadUrl</span><span class="pun">(</span><span class="pln">view</span><span class="pun">,</span><span class="pln"> url</span><span class="pun">,</span><span class="pln"> proxyUserName</span><span class="pun">,</span><span class="pln"> proxyPassword</span><span class="pun">);</span><span class="pln">
        </span><span class="kwd">return</span><span class="pln"> </span><span class="kwd">true</span><span class="pln"> </span><span class="pun">;</span><span class="pln">
    </span><span class="pun">}</span><span class="pln">
</span><span class="pun">}</span></code></pre>

<p>And set the WebViewClient on your webView:</p>

<pre class="lang-java prettyprint prettyprinted"><code><span class="pln">webView</span><span class="pun">.</span><span class="pln">setWebViewClient</span><span class="pun">(</span><span class="kwd">new</span><span class="pln"> </span><span class="typ">ProxyAuthWebViewClient</span><span class="pun">(</span><span class="str">"user"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"password"</span><span class="pun">));</span></code></pre>

    </div>
    <table class="fw">
    <tbody><tr>
    <td class="vt">
<div class="post-menu"><a href="http://stackoverflow.com/a/10752723" title="short permalink to this answer" class="short-link" id="link-post-10752723">share</a><span class="lsep">|</span><a href="http://stackoverflow.com/posts/10752723/edit" class="suggest-edit-post" title="">improve this answer</a></div>                    </td>
            


    <td align="right" class="post-signature">   
       

    <div class="user-info ">
    <div class="user-action-time">
        answered <span title="2012-05-25 10:24:38Z" class="relativetime">May 25 '12 at 10:24</span>
    </div>
    <div class="user-gravatar32">
        <a href="http://stackoverflow.com/users/1099884/yeung"><div class="gravatar-wrapper-32"><img src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/8fb9792afb5d8575b734f05cdc714981" alt=""></div></a>
    </div>
    <div class="user-details">
        <a href="http://stackoverflow.com/users/1099884/yeung">Yeung</a><br>
        <span class="reputation-score" title="reputation score " dir="ltr">618</span><span title="1 gold badge"><span class="badge1"></span><span class="badgecount">1</span></span><span title="3 silver badges"><span class="badge2"></span><span class="badgecount">3</span></span><span title="20 bronze badges"><span class="badge3"></span><span class="badgecount">20</span></span>
    </div>
</div>
    </td>
    </tr>
    </tbody></table>
</td>
        </tr>
        
<tr>
    <td class="votecell"></td>
    <td>
	    <div id="comments-10752723" class="comments " data-localized="true">
		    <table>
			    <tbody data-remaining-comments-count="0" data-addlink-html="add comment" data-addlink-disabled="true">

    <tr id="comment-25976279" class="comment ">
        <td>
            <table>
                <tbody>
                    <tr>
                        <td class=" comment-score">
                                &nbsp;&nbsp;
                        </td>
                        <td>
                                &nbsp;
                        </td>
                    </tr>
                </tbody>
            </table>
        </td>
        <td class="comment-text">
            <div style="display: block;" class="comment-body">
                <span class="comment-copy">@Yueng thanks god one has worked at last... thanks a lot!</span>
                –&nbsp;
                    <a href="http://stackoverflow.com/users/944768/hevi" title="487 reputation" class="comment-user">hevi</a>
                <span class="comment-date" dir="ltr"><a class="comment-link" href="http://stackoverflow.com/questions/8236156/android-webview-with-authenticated-proxy#comment25976279_10752723"><span title="2013-07-23 07:27:11Z" class="relativetime-clean">Jul 23 '13 at 7:27</span></a></span>
                                                                            </div>
                    </td>
    </tr>
    <tr id="comment-35282413" class="comment ">
        <td>
            <table>
                <tbody>
                    <tr>
                        <td class=" comment-score">
                                &nbsp;&nbsp;
                        </td>
                        <td>
                                &nbsp;
                        </td>
                    </tr>
                </tbody>
            </table>
        </td>
        <td class="comment-text">
            <div style="display: block;" class="comment-body">
                <span class="comment-copy">Hi,  Does this solution work for android 4.1 ? any alternative ? Thanks,</span>
                –&nbsp;
                    <a href="http://stackoverflow.com/users/1750209/toufik-at" title="63 reputation" class="comment-user">toufik_at</a>
                <span class="comment-date" dir="ltr"><a class="comment-link" href="http://stackoverflow.com/questions/8236156/android-webview-with-authenticated-proxy#comment35282413_10752723"><span title="2014-04-15 13:31:22Z" class="relativetime-clean">Apr 15 at 13:31</span></a></span>
                                                                            </div>
                    </td>
    </tr>
    <tr id="comment-35310244" class="comment ">
        <td>
            <table>
                <tbody>
                    <tr>
                        <td class=" comment-score">
                                &nbsp;&nbsp;
                        </td>
                        <td>
                                &nbsp;
                        </td>
                    </tr>
                </tbody>
            </table>
        </td>
        <td class="comment-text">
            <div style="display: block;" class="comment-body">
                <span class="comment-copy">@toufik_at, use Proxy may be different base on android version. But I am sure added a header always work after Android 2.2.</span>
                –&nbsp;
                    <a href="http://stackoverflow.com/users/1099884/yeung" title="618 reputation" class="comment-user">Yeung</a>
                <span class="comment-date" dir="ltr"><a class="comment-link" href="http://stackoverflow.com/questions/8236156/android-webview-with-authenticated-proxy#comment35310244_10752723"><span title="2014-04-16 05:31:09Z" class="relativetime-clean">Apr 16 at 5:31</span></a></span>
                                                                            </div>
                    </td>
    </tr>
			    </tbody>
		    </table>
	    </div>
			<a id="comments-link-10752723" data-rep="50" data-anon="true" class="comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.">add comment</a>
    </td>
</tr>    </tbody></table>
</div>
									<a name="new-answer"></a>
						<form id="post-form" action="http://stackoverflow.com/questions/8236156/answer/submit" method="post" class="post-form">
						    <input type="hidden" id="post-id" value="8236156">
                            <input type="hidden" id="qualityBanWarningShown" name="qualityBanWarningShown" value="false">
							<h2 class="space">Your Answer</h2>



    

<script>
    StackExchange.ready(function() {
        initTagRenderer("".split(" "), "".split(" "));
         
        prepareEditor({
            heartbeatType: 'answer',
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
        });
        

    });  
</script>


<div id="post-editor" class="post-editor">

    <div style="position: relative;">     
        <div class="wmd-container">
            <div id="wmd-button-bar" class="wmd-button-bar"><ul id="wmd-button-row" class="wmd-button-row"><li id="wmd-bold-button" class="wmd-button" style="left: 0px;"><span style="background-position: 0px -20px;"></span></li><li id="wmd-italic-button" class="wmd-button" style="left: 25px;"><span style="background-position: -20px -20px;"></span></li><li id="wmd-spacer1" class="wmd-spacer" style="left: 50px;"><span style="background-position: -40px -20px;"></span></li><li id="wmd-link-button" class="wmd-button" style="left: 75px;"><span style="background-position: -40px -20px;"></span></li><li id="wmd-quote-button" class="wmd-button" style="left: 100px;"><span style="background-position: -60px -20px;"></span></li><li id="wmd-code-button" class="wmd-button" style="left: 125px;"><span style="background-position: -80px -20px;"></span></li><li id="wmd-image-button" class="wmd-button" style="left: 150px;"><span style="background-position: -100px -20px;"></span></li><li id="wmd-spacer2" class="wmd-spacer" style="left: 175px;"><span style="background-position: -120px -20px;"></span></li><li id="wmd-olist-button" class="wmd-button" style="left: 200px;"><span style="background-position: -120px -20px;"></span></li><li id="wmd-ulist-button" class="wmd-button" style="left: 225px;"><span style="background-position: -140px -20px;"></span></li><li id="wmd-heading-button" class="wmd-button" style="left: 250px;"><span style="background-position: -160px -20px;"></span></li><li id="wmd-hr-button" class="wmd-button" style="left: 275px;"><span style="background-position: -180px -20px;"></span></li><li id="wmd-spacer3" class="wmd-spacer" style="left: 300px;"><span style="background-position: -200px -20px;"></span></li><li id="wmd-undo-button" class="wmd-button" style="left: 325px;"><span style="background-position: -200px -20px;"></span></li><li id="wmd-redo-button" class="wmd-button" style="left: 350px;"><span style="background-position: -220px -20px;"></span></li></ul></div>
            <textarea id="wmd-input" class="wmd-input" name="post-text" cols="92" rows="15" tabindex="101" data-min-length=""></textarea>
        </div>
    </div>

    <div class="fl" style="margin-top: 8px; height:24px;">&nbsp;</div>
    <div id="draft-saved" class="draft-saved community-option fl" style="margin-top: 8px; height:24px; display:none;">draft saved</div>

    <div id="draft-discarded" class="draft-discarded community-option fl" style="margin-top: 8px; height:24px; display:none;">draft discarded</div>



    <div id="wmd-preview" class="wmd-preview"></div>
    <div></div>
    <div class="edit-block">
        <input id="fkey" name="fkey" type="hidden" value="fe1b0c37d99c27f97467cacb4a59abf9">
        <input id="author" name="author" type="text">
    </div>
</div>
							<div style="position: relative;">
								
            <div class="form-item new-post-login">
        
                <div class="new-login-form">
                    <div class="new-login-left">
                        <h3>Sign up or <a id="login-link" href="http://stackoverflow.com/users/login?returnurl=%2fquestions%2f8236156%2fandroid-webview-with-authenticated-proxy%23new-answer">log in</a></h3>
                        <script>
                            StackExchange.ready(function () {
                                StackExchange.helpers.onClickDraftSave('#login-link');
                            });
                        </script>
                        <div class="preferred-login google-login">
                            <p><span class="icon"></span><span>Sign up using Google</span></p>
                        </div>
                        <div class="preferred-login facebook-login">
                            <p><span class="icon"></span><span>Sign up using Facebook</span></p>
                        </div>
                        <div class="preferred-login stackexchange-login">
                            <p><span class="icon"></span><span>Sign up using Stack Exchange</span></p>
                        </div>
                    </div>
                    <input type="hidden" name="manual-openid" class="manual-openid">
                    <input type="hidden" name="use-facebook" class="use-facebook" value="false">
                    <input type="button" class="submit-openid" value="Submit" style="display:none">
                    <div class="new-login-right">
                                <h3>Post as a guest</h3>
    <div class="form-item">
        <table>
        <tbody><tr>
                    <script>
                StackExchange.ready(function () {
                    StackExchange.helpers.bindHelpOverlayEvents($('.vm input'));
                });
            </script>
            <td class="vm">
                <div>
                    <label for="display-name">Name</label>
                    <input id="display-name" name="display-name" type="text" size="30" maxlength="30" value="" tabindex="105">
                </div>
                <div>
                    <label for="m-address">Email</label>
                    <input id="m-address" name="m-address" type="text" size="30" maxlength="100" value="" tabindex="106">
                    <span class="edit-field-overlay">required, but not shown</span>
                </div>
            </td>
        </tr>
        </tbody></table>
    </div>

                    </div>
                </div>
            </div>
            <script>
                StackExchange.ready(
                    function () {
                        StackExchange.openid.initPostLogin('.new-post-login', '%2fquestions%2f8236156%2fandroid-webview-with-authenticated-proxy%23new-answer');
                    }
                );
            </script>
            <noscript>
                        &lt;h3&gt;Post as a guest&lt;/h3&gt;
    &lt;div class="form-item"&gt;
        &lt;table&gt;
        &lt;tr&gt;
                    &lt;script&gt;
                StackExchange.ready(function () {
                    StackExchange.helpers.bindHelpOverlayEvents($('.vm input'));
                });
            &lt;/script&gt;
            &lt;td class="vm"&gt;
                &lt;div&gt;
                    &lt;label for="display-name"&gt;Name&lt;/label&gt;
                    &lt;input id="display-name" name="display-name" type="text" size="30" maxlength="30" value="" tabindex="105"&gt;
                &lt;/div&gt;
                &lt;div&gt;
                    &lt;label for="m-address"&gt;Email&lt;/label&gt;
                    &lt;input id="m-address" name="m-address" type="text" size="30" maxlength="100" value="" tabindex="106"&gt;
                    &lt;span class="edit-field-overlay"&gt;required, but not shown&lt;/span&gt;
                &lt;/div&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;/table&gt;
    &lt;/div&gt;

            </noscript>
							</div>
           
															<div class="form-submit cbt">
									<input id="submit-button" type="submit" value="Post Your Answer" tabindex="110">
									<a href="http://stackoverflow.com/questions/8236156/android-webview-with-authenticated-proxy#" class="discard-answer dno">discard</a>

<p class="privacy-policy-agreement">
By posting your answer, you agree to the <a href="http://stackexchange.com/legal/privacy-policy" target="_blank">privacy policy</a> and <a href="http://stackexchange.com/legal/terms-of-service" target="_blank">terms of service</a>.</p>
<input type="hidden" name="legalLinksShown" value="1">								</div>
						</form>



						<h2 class="bottom-notice" data-loc="1">
Not the answer you're looking for?							Browse other questions tagged <a href="http://stackoverflow.com/questions/tagged/java" class="post-tag" title="show questions tagged &#39;java&#39;" rel="tag">java</a> <a href="http://stackoverflow.com/questions/tagged/android" class="post-tag" title="show questions tagged &#39;android&#39;" rel="tag"><img src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/tKsDb.png" height="16" width="18" alt="" class="sponsor-tag-img">android</a> <a href="http://stackoverflow.com/questions/tagged/proxy" class="post-tag" title="show questions tagged &#39;proxy&#39;" rel="tag">proxy</a> <a href="http://stackoverflow.com/questions/tagged/android-webview" class="post-tag" title="show questions tagged &#39;android-webview&#39;" rel="tag">android-webview</a>  or <a href="http://stackoverflow.com/questions/ask">ask your own question</a>.						</h2>
			</div>
		</div>
				<div id="sidebar" class="show-votes">
						    <div class="module question-stats">
			        <table id="qinfo">
			            <tbody><tr>
			                <td>
			                    <p class="label-key">asked</p>
			                </td>
			                <td style="padding-left: 10px">
			                    <p class="label-key" title="2011-11-23 01:11:35Z"><b>2 years ago</b></p>
			                </td>
			            </tr>
			            <tr>
			                <td>
			                    <p class="label-key">viewed</p>
			                </td>

			                <td style="padding-left: 10px">
			                    <p class="label-key">
			                        <b>2670 times</b>
			                    </p>
			                </td>
			            </tr>
			                <tr>
			                    <td>
			                        <p class="label-key">active</p>
			                    </td>
			                    <td style="padding-left: 10px">
			                        <p class="label-key"><b><a href="http://stackoverflow.com/questions/8236156/android-webview-with-authenticated-proxy?lastactivity" class="lastactivity-link" title="2012-05-25 10:24:38Z">2 years ago</a></b></p>
			                    </td>
			                </tr>
			        </tbody></table>
			    </div>
						
			<script>
                var ados = ados || {};ados.run = ados.run || [];
                ados.run.push(function() { ados_add_placement(22,8277,"adzerk372153858",17).setZone(45) ; });                    
            </script>
              
    <div id="hireme" class="flat-orange">  <a href="http://careers.stackoverflow.com/?a=Aec" class="top" target="_blank"> </a> <ul class="jobs"> <li> <a href="http://careers.stackoverflow.com/jobs/58474/technical-director-trendy-entertainment?a=19jy1Slu8" target="_blank" title="Technical Director at Trendy Entertainment. Click to learn more."> Technical Director<br> <span class="company">Trendy Entertainment</span> <span class="location">Gainesville, FL / relocation</span> </a> </li> <li> <a href="http://careers.stackoverflow.com/jobs/57529/product-manager-growth-udemy?a=18a5HrL2g" target="_blank" title="Product Manager – Growth at Udemy. Click to learn more."> Product Manager – Growth<br> <span class="company">Udemy</span> <span class="location">San Francisco</span> </a> </li> <li> <a href="http://careers.stackoverflow.com/jobs/53118/web-programmer-i-info-tech-inc?a=12MyiPJgA" target="_blank" title="Web Programmer I at Info Tech. Click to learn more."> Web Programmer I<br> <span class="company">Info Tech</span> <span class="location">Gainesville, FL</span> </a> </li> <li> <a href="http://careers.stackoverflow.com/jobs/58369/javascript-application-developer-sharpspring?a=19bBM1C3m" target="_blank" title="Javascript Application Developer at SharpSpring. Click to learn more."> Javascript Application Developer<br> <span class="company">SharpSpring</span> <span class="location">Gainesville, FL</span> </a> </li> <li> <a href="http://careers.stackoverflow.com/jobs/54882/software-developer-info-tech-inc?a=14VWck2wo" target="_blank" title="Software Developer at Info Tech. Click to learn more."> Software Developer<br> <span class="company">Info Tech</span> <span class="location">Gainesville, FL</span> </a> </li> <li> <a href="http://careers.stackoverflow.com/jobs/57848/junior-it-administrator-imagination-publishing?a=18yddEW6Q" target="_blank" title="Junior IT Administrator at Imagination Publishing. Click to learn more."> Junior IT Administrator<br> <span class="company">Imagination Publishing</span> <span class="location">Chicago, IL</span> </a> </li> </ul> <img alt="" class="impression" src="./java - Android WebView - with authenticated proxy - Stack Overflow_files/19jy1Slu8-18a5HrL2g-12MyiPJgA-19bBM1C3m-14VWck2wo-18yddEW6Q-Aec" style="display:none"></div>
			  
    
            <div class="module sidebar-linked">
	<h4 id="h-linked">Linked</h4>
	<div class="linked" data-tracker="lq=1">
<div class="spacer">
	<a href="http://stackoverflow.com/q/4488338?lq=1" title="Vote score (upvotes - downvotes)">
		<div class="answer-votes answered-accepted default">18</div>
	</a>
	<a href="http://stackoverflow.com/questions/4488338/webview-android-proxy?lq=1" class="question-hyperlink">WebView android proxy</a>
</div><div class="spacer">
	<a href="http://stackoverflow.com/q/2539669?lq=1" title="Vote score (upvotes - downvotes)">
		<div class="answer-votes answered-accepted default">1</div>
	</a>
	<a href="http://stackoverflow.com/questions/2539669/android-unable-to-make-httprequest-behind-firewall?lq=1" class="question-hyperlink">Android: Unable to make httprequest behind firewall</a>
</div>			</div>
</div>

				<div class="module sidebar-related">
					<h4 id="h-related">Related</h4>
                    <div class="related js-gps-related-questions" data-tracker="rq=1">
                        <div class="spacer js-gps-track">
<a href="http://stackoverflow.com/q/4488338?rq=1" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes answered-accepted default">18
    </div>
</a><a href="http://stackoverflow.com/questions/4488338/webview-android-proxy?rq=1" class="question-hyperlink">WebView android proxy</a>
</div>
<div class="spacer js-gps-track">
<a href="http://stackoverflow.com/q/5565595?rq=1" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes answered-accepted default">4
    </div>
</a><a href="http://stackoverflow.com/questions/5565595/how-can-i-connect-to-a-proxy-on-android?rq=1" class="question-hyperlink">How can I connect to a proxy on Android?</a>
</div>
<div class="spacer js-gps-track">
<a href="http://stackoverflow.com/q/11106769?rq=1" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes answered-accepted default">1
    </div>
</a><a href="http://stackoverflow.com/questions/11106769/http-proxy-in-android-emulator-works-for-browser-not-for-webview?rq=1" class="question-hyperlink">HTTP proxy in Android Emulator works for browser, not for WebView</a>
</div>
<div class="spacer js-gps-track">
<a href="http://stackoverflow.com/q/12177929?rq=1" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes default">2
    </div>
</a><a href="http://stackoverflow.com/questions/12177929/webview-opens-url-even-if-proxy-server-is-not-running?rq=1" class="question-hyperlink">WebView Opens URL Even If Proxy Server Is Not Running</a>
</div>
<div class="spacer js-gps-track">
<a href="http://stackoverflow.com/q/12462657?rq=1" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes default">0
    </div>
</a><a href="http://stackoverflow.com/questions/12462657/programmatically-setting-proxy-for-webview-in-android?rq=1" class="question-hyperlink">programmatically setting proxy for webview in android</a>
</div>
<div class="spacer js-gps-track">
<a href="http://stackoverflow.com/q/13375357?rq=1" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes answered-accepted extra-large">1415
    </div>
</a><a href="http://stackoverflow.com/questions/13375357/proper-use-cases-for-android-usermanager-isuseragoat?rq=1" class="question-hyperlink">Proper use cases for Android UserManager.isUserAGoat()?</a>
</div>
<div class="spacer js-gps-track">
<a href="http://stackoverflow.com/q/13491759?rq=1" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes default">1
    </div>
</a><a href="http://stackoverflow.com/questions/13491759/android-webview-ntlm-authentication?rq=1" class="question-hyperlink">Android WebView - NTLM Authentication</a>
</div>
<div class="spacer js-gps-track">
<a href="http://stackoverflow.com/q/16522429?rq=1" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes default">1
    </div>
</a><a href="http://stackoverflow.com/questions/16522429/google-charts-wont-show-in-webview-android-4-0-4?rq=1" class="question-hyperlink">Google-Charts won't show in WebView (Android 4.0.4)</a>
</div>
<div class="spacer js-gps-track">
<a href="http://stackoverflow.com/q/16590734?rq=1" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes default">0
    </div>
</a><a href="http://stackoverflow.com/questions/16590734/use-proxy-in-webview-in-android?rq=1" class="question-hyperlink">Use proxy in webview in android</a>
</div>
<div class="spacer js-gps-track">
<a href="http://stackoverflow.com/q/20443253?rq=1" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes default">0
    </div>
</a><a href="http://stackoverflow.com/questions/20443253/debug-webview-tracking-in-android?rq=1" class="question-hyperlink">debug webview tracking in android</a>
</div>

                    </div>
				</div>
            
<div id="hot-network-questions" class="module">
    <h4>
        <a href="http://stackexchange.com/questions?tab=hot" class="js-gps-track" data-gps-track="posts_hot_network.click({ item_type:1, location:11 })">
            Hot Network Questions
        </a>
    </h4>
    <ul>
            <li>
                <div class="favicon favicon-stackoverflow" title="Stack Overflow"></div><a href="http://stackoverflow.com/questions/24307512/is-it-required-to-specify-the-template-argument-of-a-base-class-if-the-base-clas" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:1 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Is it required to specify the template argument of a base class if the base class is a parameter type of a member function?
                </a>

            </li>
            <li>
                <div class="favicon favicon-workplace" title="The Workplace Stack Exchange"></div><a href="http://workplace.stackexchange.com/questions/27484/administrator-thinks-i-an-it-volunteer-student-am-hacking-the-school-network" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:423 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Administrator thinks I, an IT volunteer student, am hacking the school network
                </a>

            </li>
            <li>
                <div class="favicon favicon-academia" title="Academia Stack Exchange"></div><a href="http://academia.stackexchange.com/questions/23474/is-it-acceptable-to-drink-alcohol-in-front-of-senior-staff-during-semi-official" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:415 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Is it acceptable to drink alcohol in front of senior staff during semi-official occasions?
                </a>

            </li>
            <li>
                <div class="favicon favicon-unix" title="Unix &amp; Linux Stack Exchange"></div><a href="http://unix.stackexchange.com/questions/138023/using-instead-of-for-stdin-using-bash" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:106 }); posts_hot_network.click({ item_type:2, location:11 })">
                    using _&lt; instead of &lt; for stdin using bash
                </a>

            </li>
            <li>
                <div class="favicon favicon-ell" title="English Language Learners Stack Exchange"></div><a href="http://ell.stackexchange.com/questions/26622/kyle-had-been-born-four-years-to-the-day-after-her-mother-had-died" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:481 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Kyle had been born four years to the day after her mother had died
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-tex" title="TeX - LaTeX Stack Exchange"></div><a href="http://tex.stackexchange.com/questions/185595/problems-with-custom-symbols" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:85 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Problems with custom symbols
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-salesforce" title="Salesforce Stack Exchange"></div><a href="http://salesforce.stackexchange.com/questions/41056/how-to-get-access-to-headless-flow-pilot-access" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:459 }); posts_hot_network.click({ item_type:2, location:11 })">
                    How to get access to Headless Flow Pilot access
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-superuser" title="Super User"></div><a href="http://superuser.com/questions/770685/is-it-safe-to-power-on-a-motherboard-outside-of-its-case" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:3 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Is it safe to power on a motherboard outside of its case?
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-space" title="Space Exploration Stack Exchange"></div><a href="http://space.stackexchange.com/questions/4826/what-are-the-advantages-of-ssto-craft-over-multi-stage-crafts" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:508 }); posts_hot_network.click({ item_type:2, location:11 })">
                    What are the advantages of SSTO craft over Multi-stage crafts?
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-serverfault" title="Server Fault"></div><a href="http://serverfault.com/questions/606450/switching-yum-from-rhel-to-something-else" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:2 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Switching yum from RHEL to .. something else?
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-craftcms" title="Craft CMS Stack Exchange"></div><a href="http://craftcms.stackexchange.com/questions/289/how-do-i-target-the-first-item-in-a-twig-for-loop" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:563 }); posts_hot_network.click({ item_type:2, location:11 })">
                    How do I target the first item in a Twig for loop?
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-askubuntu" title="Ask Ubuntu"></div><a href="http://askubuntu.com/questions/485495/how-to-both-display-a-command-lines-output-on-concole-and-save-the-output-into" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:89 }); posts_hot_network.click({ item_type:2, location:11 })">
                    How to both display a command line's output on concole and save the output into a text file?
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-math" title="Mathematics Stack Exchange"></div><a href="http://math.stackexchange.com/questions/839302/is-it-bad-to-keep-aside-langs-algebra-in-graduate-school" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:69 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Is it bad to keep aside Lang's Algebra in graduate school?
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-money" title="Personal Finance &amp; Money Stack Exchange"></div><a href="http://money.stackexchange.com/questions/33560/uncashed-lawsuit-settlement-check" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:93 }); posts_hot_network.click({ item_type:2, location:11 })">
                    uncashed lawsuit settlement check
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-salesforce" title="Salesforce Stack Exchange"></div><a href="http://salesforce.stackexchange.com/questions/41063/writing-too-much-to-debug-log-would-affect-apex-trigger-or-visualforce-page-perf" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:459 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Writing too much to debug log would affect APEX trigger or Visualforce page performance?
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-workplace" title="The Workplace Stack Exchange"></div><a href="http://workplace.stackexchange.com/questions/27533/what-to-do-when-blocked-by-reviews-and-team-is-busy" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:423 }); posts_hot_network.click({ item_type:2, location:11 })">
                    what to do when blocked by reviews and team is busy
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-codegolf" title="Programming Puzzles &amp; Code Golf Stack Exchange"></div><a href="http://codegolf.stackexchange.com/questions/31943/return-the-flipped-version-of-a-number" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:200 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Return the flipped version of a number
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-gaming" title="Arqade"></div><a href="http://gaming.stackexchange.com/questions/173133/how-did-part-of-my-house-in-minecraft-disapper" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:41 }); posts_hot_network.click({ item_type:2, location:11 })">
                    How did part of my house in minecraft disapper?
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-rpg" title="Role-playing Games Stack Exchange"></div><a href="http://rpg.stackexchange.com/questions/41177/are-there-good-goblins" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:122 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Are there "Good" goblins?
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-gamedev" title="Game Development Stack Exchange"></div><a href="http://gamedev.stackexchange.com/questions/77914/are-there-3d-projections-other-than-orthographic-and-perspective" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:53 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Are there 3D projections other than orthographic and perspective?
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-scifi" title="Science Fiction &amp; Fantasy Stack Exchange"></div><a href="http://scifi.stackexchange.com/questions/59635/looking-for-a-book-title-contained-a-number-maybe-story-was-about-a-female-h" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:186 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Looking for a book: title contained a number (maybe), story was about a female humanoid operative
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-rpg" title="Role-playing Games Stack Exchange"></div><a href="http://rpg.stackexchange.com/questions/41151/how-should-i-stat-very-powerful-artifacts-that-the-party-acquires-too-early" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:122 }); posts_hot_network.click({ item_type:2, location:11 })">
                    How should I stat very powerful artifacts that the party acquires too early?
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-academia" title="Academia Stack Exchange"></div><a href="http://academia.stackexchange.com/questions/23584/how-does-one-go-about-doing-a-ph-d-in-europe-as-an-american" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:415 }); posts_hot_network.click({ item_type:2, location:11 })">
                    How does one go about doing a Ph.D. in Europe as an American?
                </a>

            </li>
            <li class="dno js-hidden" style="display: list-item;">
                <div class="favicon favicon-travel" title="Travel Stack Exchange"></div><a href="http://travel.stackexchange.com/questions/30608/what-does-this-chinese-character-%e5%a4%a9-mean-on-my-visa" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:273 }); posts_hot_network.click({ item_type:2, location:11 })">
                    What does this Chinese character 天 mean on my visa?
                </a>

            </li>
    </ul>

        
</div>
		</div>
	
<div id="feed-link">
    <div id="feed-link-text">
        <a href="http://stackoverflow.com/feeds/question/8236156" title="feed of this question and its answers">
            <span class="feed-icon"></span>question feed
        </a>
    </div>
</div>	<script>
StackExchange.ready(function(){$.get('/posts/8236156/ivc/e9a7');});
</script>
<noscript>
    &lt;div&gt;&lt;img src="/posts/8236156/ivc/e9a7" class="dno" alt="" width="0" height="0"&gt;&lt;/div&gt;
</noscript><div style="display:none" id="prettify-lang">lang-java</div></div>



        </div>
    </div>
    <div id="footer" class="categories">
        <div class="footerwrap">
            <div id="footer-menu">
                <div class="top-footer-links">
                        <a href="http://stackoverflow.com/tour">tour</a>
                    <a href="http://stackoverflow.com/help">help</a>
                        <a href="http://stackoverflow.com/help/badges">badges</a>
                    <a href="http://blog.stackoverflow.com/?blb=1">blog</a>
                        <a href="http://chat.stackoverflow.com/">chat</a>
                    <a href="http://data.stackexchange.com/">data</a>
                    <a href="http://stackexchange.com/legal">legal</a>
                    <a href="http://stackexchange.com/legal/privacy-policy">privacy policy</a>
                    <a href="http://stackexchange.com/about/hiring">jobs</a>
                    <a href="http://stackexchange.com/mediakit">advertising info</a>

                    <a onclick="StackExchange.switchMobile(&quot;on&quot;)">mobile</a>
                    <b><a href="http://stackoverflow.com/contact">contact us</a></b>
                        <b><a href="http://meta.stackoverflow.com/">feedback</a></b>
                    
                </div>
                <div id="footer-sites">
                    <table>
    <tbody><tr>
            <th colspan="3">
                Technology
            </th>
            <th>
                Life / Arts
            </th>
            <th>
                Culture / Recreation
            </th>
            <th>
                Science
            </th>
            <th>
                Other
            </th>
    </tr>
    <tr>
            <td>
                <ol>
                        <li><a href="http://stackoverflow.com/" title="professional and enthusiast programmers">Stack Overflow</a></li>
                        <li><a href="http://serverfault.com/" title="professional system and network administrators">Server Fault</a></li>
                        <li><a href="http://superuser.com/" title="computer enthusiasts and power users">Super User</a></li>
                        <li><a href="http://webapps.stackexchange.com/" title="power users of web applications">Web Applications</a></li>
                        <li><a href="http://askubuntu.com/" title="Ubuntu users and developers">Ask Ubuntu</a></li>
                        <li><a href="http://webmasters.stackexchange.com/" title="pro webmasters">Webmasters</a></li>
                        <li><a href="http://gamedev.stackexchange.com/" title="professional and independent game developers">Game Development</a></li>
                        <li><a href="http://tex.stackexchange.com/" title="users of TeX, LaTeX, ConTeXt, and related typesetting systems">TeX - LaTeX</a></li>
                            </ol></td><td><ol>
                        <li><a href="http://programmers.stackexchange.com/" title="professional programmers interested in conceptual questions about software development">Programmers</a></li>
                        <li><a href="http://unix.stackexchange.com/" title="users of Linux, FreeBSD and other Un*x-like operating systems.">Unix &amp; Linux</a></li>
                        <li><a href="http://apple.stackexchange.com/" title="power users of Apple hardware and software">Ask Different (Apple)</a></li>
                        <li><a href="http://wordpress.stackexchange.com/" title="WordPress developers and administrators">WordPress Development</a></li>
                        <li><a href="http://gis.stackexchange.com/" title="cartographers, geographers and GIS professionals">Geographic Information Systems</a></li>
                        <li><a href="http://electronics.stackexchange.com/" title="electronics and electrical engineering professionals, students, and enthusiasts">Electrical Engineering</a></li>
                        <li><a href="http://android.stackexchange.com/" title="enthusiasts and power users of the Android operating system">Android Enthusiasts</a></li>
                        <li><a href="http://security.stackexchange.com/" title="Information security professionals">Information Security</a></li>
                            </ol></td><td><ol>
                        <li><a href="http://dba.stackexchange.com/" title="database professionals who wish to improve their database skills and learn from others in the community">Database Administrators</a></li>
                        <li><a href="http://drupal.stackexchange.com/" title="Drupal developers and administrators">Drupal Answers</a></li>
                        <li><a href="http://sharepoint.stackexchange.com/" title="SharePoint enthusiasts">SharePoint</a></li>
                        <li><a href="http://ux.stackexchange.com/" title="user experience researchers and experts">User Experience</a></li>
                        <li><a href="http://mathematica.stackexchange.com/" title="users of Mathematica">Mathematica</a></li>
                    
                        <li>
                            <a href="http://stackexchange.com/sites#technology" class="more">
                                more (14)
                            </a>
                        </li>
                </ol>
            </td>
            <td>
                <ol>
                        <li><a href="http://photo.stackexchange.com/" title="professional, enthusiast and amateur photographers">Photography</a></li>
                        <li><a href="http://scifi.stackexchange.com/" title="science fiction and fantasy enthusiasts">Science Fiction &amp; Fantasy</a></li>
                        <li><a href="http://graphicdesign.stackexchange.com/" title="professional graphic designers and non-designers trying to do their own graphic design">Graphic Design</a></li>
                        <li><a href="http://cooking.stackexchange.com/" title="professional and amateur chefs">Seasoned Advice (cooking)</a></li>
                        <li><a href="http://diy.stackexchange.com/" title="contractors and serious DIYers">Home Improvement</a></li>
                        <li><a href="http://money.stackexchange.com/" title="people who want to be financially literate">Personal Finance &amp; Money</a></li>
                        <li><a href="http://academia.stackexchange.com/" title="academics and those enrolled in higher education">Academia</a></li>
                    
                        <li>
                            <a href="http://stackexchange.com/sites#lifearts" class="more">
                                more (10)
                            </a>
                        </li>
                </ol>
            </td>
            <td>
                <ol>
                        <li><a href="http://english.stackexchange.com/" title="linguists, etymologists, and serious English language enthusiasts">English Language &amp; Usage</a></li>
                        <li><a href="http://skeptics.stackexchange.com/" title="scientific skepticism">Skeptics</a></li>
                        <li><a href="http://judaism.stackexchange.com/" title="those who base their lives on Jewish law and tradition and anyone interested in learning more">Mi Yodeya (Judaism)</a></li>
                        <li><a href="http://travel.stackexchange.com/" title="road warriors and seasoned travelers">Travel</a></li>
                        <li><a href="http://christianity.stackexchange.com/" title="committed Christians, experts in Christianity and those interested in learning more">Christianity</a></li>
                        <li><a href="http://gaming.stackexchange.com/" title="passionate videogamers on all platforms">Arqade (gaming)</a></li>
                        <li><a href="http://bicycles.stackexchange.com/" title="people who build and repair bicycles, people who train cycling, or commute on bicycles">Bicycles</a></li>
                        <li><a href="http://rpg.stackexchange.com/" title="gamemasters and players of tabletop, paper-and-pencil role-playing games">Role-playing Games</a></li>
                    
                        <li>
                            <a href="http://stackexchange.com/sites#culturerecreation" class="more">
                                more (21)
                            </a>
                        </li>
                </ol>
            </td>
            <td>
                <ol>
                        <li><a href="http://math.stackexchange.com/" title="people studying math at any level and professionals in related fields">Mathematics</a></li>
                        <li><a href="http://stats.stackexchange.com/" title="people interested in statistics, machine learning, data analysis, data mining, and data visualization">Cross Validated (stats)</a></li>
                        <li><a href="http://cstheory.stackexchange.com/" title="theoretical computer scientists and researchers in related fields">Theoretical Computer Science</a></li>
                        <li><a href="http://physics.stackexchange.com/" title="active researchers, academics and students of physics">Physics</a></li>
                        <li><a href="http://mathoverflow.net/" title="professional mathematicians">MathOverflow</a></li>
                    
                        <li>
                            <a href="http://stackexchange.com/sites#science" class="more">
                                more (7)
                            </a>
                        </li>
                </ol>
            </td>
            <td>
                <ol>
                        <li><a href="http://stackapps.com/" title="apps, scripts, and development with the Stack Exchange API">Stack Apps</a></li>
                        <li><a href="http://meta.stackexchange.com/" title="meta-discussion of the Stack Exchange family of Q&amp;A websites">Meta Stack Exchange</a></li>
                        <li><a href="http://area51.stackexchange.com/" title="proposing new sites in the Stack Exchange network">Area 51</a></li>
                        <li><a href="http://careers.stackoverflow.com/">Stack Overflow Careers</a></li>
                    
                </ol>
            </td>
    </tr>
</tbody></table>
                </div>
            </div>

            <div id="copyright">
                site design / logo © 2014 stack exchange inc; user contributions licensed under <a href="http://creativecommons.org/licenses/by-sa/3.0/" rel="license">cc by-sa 3.0</a> 
                with <a href="http://blog.stackoverflow.com/2009/06/attribution-required/" rel="license">attribution required</a>
            </div>
            <div id="svnrev">
                rev 2014.6.19.1668
            </div>
            
        </div>
    </div>
    <noscript>
        &lt;div id="noscript-warning"&gt;Stack Overflow works best with JavaScript enabled&lt;img src="http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif" alt="" class="dno"&gt;&lt;/div&gt;
    </noscript>
<script>var p = "http", d = "static"; if (document.location.protocol == "https:") { p += "s"; d = "engine"; } var z = document.createElement("script"); z.type = "text/javascript"; z.async = true; z.src = p + "://" + d + ".adzerk.net/ados.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script>
<script>
    var ados = ados || {};
    ados.run = ados.run || [];
    ados.run.push(function () { ados_setKeywords('java,android,proxy,android-webview');; ados_load(); });         
</script>

    <script>
        (function (i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o),
            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m);
        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
        ga('create', 'UA-5620270-1');        
        
        ga('set', 'dimension2', '|java|android|proxy|android-webview|');         
        ga('send', 'pageview');
        var _qevents = _qevents || [],
            _comscore = _comscore || [];
        (function () {
            var ssl='https:'==document.location.protocol,
                s=document.getElementsByTagName('script')[0],
                qc=document.createElement('script');
            qc.async=true;
            qc.src=(ssl?'https://secure':'http://edge')+'.quantserve.com/quant.js';
            s.parentNode.insertBefore(qc, s);
            var sc=document.createElement('script');
            sc.async=true;
            sc.src=(ssl?'https://sb':'http://b') + '.scorecardresearch.com/beacon.js';
            s.parentNode.insertBefore(sc, s);
        })();
        _comscore.push({ c1: "2", c2: "17440561" });
        _qevents.push({ qacct: "p-c1rF4kxgLUzNc" });
    </script>        
    
    
</body></html>